package com.shuma.shopmanage.draftmodule.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shuma.shopmanage.model.draft.model.GoodsDraft;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface GoodsDraftMapper extends BaseMapper<GoodsDraft> {
    @Select("select * from goodsDraft where id = #{draftId} and createUserId = #{userId}")
    public GoodsDraft getGoodsDraft(@Param("draftId")Long draftId,@Param("userId")Long userId);
}
